package com.example.springsecuritydemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @date 2021-06-24 下午2:10
 */
@Controller
public class IndexController {

    @GetMapping("/index")
    public String index(){
        return "login";
    }

    @RequestMapping("/success")
    @ResponseBody
    public String success(){
        return "success";
    }

    @RequestMapping("/fail")
    @ResponseBody
    public String fail(){
        return "fail";
    }

    @RequestMapping("/unauth")
    @ResponseBody
    public String unauth(){
        return "unauth";
    }
}
